﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="GetOverAllSale.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.WebForm9" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">

    <p>
    <asp:Button ID="butGetTotalSale" runat="server" onclick="butGetTotalSale_Click" 
        Text="Get Total Sale" CssClass="genericButton" Width="205px" />
        <asp:Button ID="Button2" runat="server" CssClass="genericButton" 
            Text=" By Genre or Title Sale" Width="214px" onclick="Button2_Click" />
        </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="Label12" runat="server" CssClass="text" Text="Type of Search"></asp:Label>
&nbsp;<asp:DropDownList ID="drpdwnTitleorGenre" runat="server">
        </asp:DropDownList>
        </p>
    <asp:Label ID="lblSaleByGenre" runat="server" CssClass="text" 
        Text="Title/Genre"></asp:Label>
    <asp:TextBox ID="txtSaleGenre" runat="server"></asp:TextBox>
    <asp:Button ID="butGetSaleGenre" runat="server" CssClass="genericButton" 
        onclick="butGetSaleGenre_Click" Text="Show" ValidationGroup="sale" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ControlToValidate="txtSaleGenre" ErrorMessage="Required" 
        ValidationGroup="sale"></asp:RequiredFieldValidator>
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowPaging="True" PageSize="5" OnPageIndexChanging="searchGridView1_OnPageIndexChanging" PagerSettings-PageButtonCount="10" CssClass="grid">
            <Columns>
                <asp:TemplateField HeaderText = "Image Cover">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server"  ImageUrl='<%# Eval("ImageLocation") %>' CssClass="smallImage3" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText = "Title">
                    <ItemTemplate>
                     <asp:Label ID="Label8" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText = "Price">
                    <ItemTemplate>  
                        <asp:Label ID="Label9" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText = "Stocks">
                    <ItemTemplate>        
                        <asp:Label ID="Label10" runat="server" Text='<%# Eval("Stock") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                No Sale For This Book
            </EmptyDataTemplate>
        </asp:GridView>
        &nbsp;</p>
        <asp:Label ID="Label1" runat="server" Text="Total Sale"></asp:Label>
        <asp:Label ID="lblGetTotalSale" runat="server" Text="   "></asp:Label>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
